﻿<%@ Page Language="C#" MasterPageFile="~masterurl/custom.master" AutoEventWireup="true" Inherits="Kiiro.SiteDefinition.ProjectPages.NewDiscussion, Kiiro.SiteDefinition, Version=1.2.0.7, Culture=neutral, PublicKeyToken=5b2f4277f61b7816" %>

<%@ Register TagPrefix="v2" TagName="CustomFieldCollection" Src="~/_controltemplates/Kiiro/CustomFieldCollection.ascx" %>
<%@ Register TagPrefix="v2" TagName="TeamMembers" Src="~/_controltemplates/Kiiro/TeamMemberCollection.ascx" %>
<%@ Register TagPrefix="v2" TagName="AttachmentControl" Src="~/_controltemplates/Kiiro/AttachmentControl.ascx" %>
<%@ Register TagPrefix="v2" TagName="FormButtons" Src="~/_controltemplates/Kiiro/FormButtons.ascx" %>
<%@ Register TagPrefix="v2" TagName="WMDEditor" Src="~/_controltemplates/Kiiro/WMDEditor.ascx" %>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
  <asp:Literal ID="litTitle" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

  <script type="text/javascript">
      $(InitTeamMemberCollection);
      $(InitAttachments);
      $(InitAutoGrow);
  </script>

  <asp:Panel ID="pnlActionBar" runat="server" CssClass="actionbar">
    <div class="wrap-has-tabs">
      <p class="left">
        <asp:HyperLink ID="lnkBack" runat="server" CssClass="icon-back" Text="Back To Discussions" />
      </p>
    </div>
  </asp:Panel>
  <div class="body-pad">
    <div class="body">
      <div class="wrap">
        <div class="panel-pad">
          <div class="panel">
            <div class="panel-wrap">
              <div class="panel-title">
                <h2>
                  Discussion Settings</h2>
              </div>
              <div class="panel-content">
                <div class="settings">
                  <div class="row">
                    <dl>
                      <dt>
                        <label for="title">
                          Title <span class="required">*</span></label></dt>
                      <dd>
                        <asp:TextBox ID="txtDiscussionTitle" runat="server" CssClass="input" /></dd>
                      <dd>
                        <asp:Label ID="lblDiscussionTitleMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Give the discussion a title.</h3>
                      </dt>
                      <dd>
                        This is like the subject line for your discussion.</dd>
                    </dl>
                  </div>
                  <div class="row" id="divDetails" runat="server">
                    <dl>
                      <dt>
                        <label for="text">
                          Discussion Body</label></dt>
                      <dd>
                        <v2:WMDEditor id="v2WMDEditor" runat="server" /></dd>
                      <dd>
                        <asp:Label ID="lblDiscussionTextMessage" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Write a message to begin the discussion.</h3>
                      </dt>
                      <dd>
                        This is the body text of the first message in this discussion, others will reply to this post.</dd>
                    </dl>
                  </div>
                  <div class="row borderless" id="divEmail" runat="server">
                    <dl>
                      <dt>
                        <label for="text">
                          Notify Users</label></dt>
                      <dd>
                        <v2:TeamMembers id="teamMembers" runat="server" />
                      </dd>
                      <dd>
                        <asp:Label ID="Label1" runat="server" class="validation-message" /></dd>
                    </dl>
                    <dl>
                      <dt>
                        <h3>
                          Users to notify.</h3>
                      </dt>
                      <dd>
                        The selected users will be notified that a new discussion has been created. Users with a disabled checkbox have email notifications
                        turned off.</dd>
                    </dl>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="panel-pad">
          <div class="panel">
            <div class="panel-wrap">
              <div class="panel-title">
                <h2>
                  Attachment Settings</h2>
              </div>
              <div class="panel-content">
                <div class="settings">
                  <div class="row borderless">
                    <v2:AttachmentControl id="attachmentControl" runat="server" Title="Attachments" />
                    <dl>
                      <dt>
                        <h3>
                          Provide an attachment(s) to be associated with the Discussion.</h3>
                      </dt>
                      <dd>
                        Browse to the file you wish to include as an attachment. Once you have selected a file, save the Discussion to attach.
                      </dd>
                    </dl>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <v2:CustomFieldCollection id="v2CustomFieldCollection" runat="server" />
        <v2:FormButtons id="v2FormButtons" runat="server" />
      </div>
    </div>
  </div>
</asp:Content>